package com.nut.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.course.common.BaseEntity;
import lombok.Data;


//课程订单   机构和学校都可以查看
@Data
@TableName("bjt_course_order")
public class CourseOrder extends BaseEntity {

    @TableId(type = IdType.INPUT)
    private Long id;

    //学校id
    private Integer schoolId;

    //机构id
    private Integer partnerId;

    //学校课程id
    private Integer courseId;

    //机构课程id
    private Integer partnerCourseId;

    //课程名称
    private String name;

    @TableField(exist = false)
    private String schoolName;

    //学校联系人
    @TableField(exist = false)
    private String contracts;

    //学校联系人手机号
    @TableField(exist = false)
    private String mobile;

    @TableField(exist = false)
    private String partnerName;

    //课程价格 单价
    private Integer unitPrice;

    //课程数量
    private Integer num;

    //课程价格 总价
    private Integer totalPrice;

    //订单状态  1待审核  2审核通过
    private Integer status;


}
